package stone;

public class NumToken extends Token{
    private int value;
    public NumToken(int lineNumber, int i) {
        super(lineNumber);
        value=i;
    }

    @Override
    public int getNumber() {
        return value;
    }

    @Override
    public boolean isNumber() {
        return true;
    }

    @Override
    public String getText() {
        return Integer.toString(value);
    }

    @Override
    public String getType() {
        return super.getType();
    }
}
